package com.settlement.system.model.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import java.io.Serializable;
import com.alibaba.excel.annotation.ExcelProperty;
import java.util.HashMap;
import java.util.Map;
import java.math.BigDecimal;

/**
* <p>
* 凭证明细表导入VO
* </p>
*
* @author huangrensen
* @since 2024-08-26
*/
@Schema
@Data
public class SysVoucherItemImportVo implements Serializable {
    @ExcelProperty(value = "凭证主表id")
    private String voucherId;
    @ExcelProperty(value = "摘要")
    private String explanation;
    @ExcelProperty(value = "末级科目编码")
    private String lastCode;
    @ExcelProperty(value = "一级科目名称")
    private String firstName;
    @ExcelProperty(value = "末级科目名称")
    private String lastName;
    @ExcelProperty(value = "银行")
    private String bank;
    @ExcelProperty(value = "银行账号")
    private String bankAccount;
    @ExcelProperty(value = "部门")
    private String dept;
    @ExcelProperty(value = "供应商")
    private String supplier;
    @ExcelProperty(value = "客户")
    private String customer;
    @ExcelProperty(value = "原币金额")
    private String amount;
    @ExcelProperty(value = "借方金额")
    private String debitAmount;
    @ExcelProperty(value = "贷方金额")
    private String creditAmount;

    public static Map<String, String> getKeyMap(){
        Map<String, String> map = new HashMap<>();
        map.put("凭证主表id", "voucherId");
        map.put("摘要", "explanation");
        map.put("末级科目编码", "lastCode");
        map.put("一级科目名称", "firstName");
        map.put("末级科目名称", "lastName");
        map.put("银行", "bank");
        map.put("银行账号", "bankAccount");
        map.put("部门", "dept");
        map.put("供应商", "supplier");
        map.put("客户", "customer");
        map.put("原币金额", "amount");
        map.put("借方金额", "debitAmount");
        map.put("贷方金额", "creditAmount");
        return map;
    }
}
